<!doctype html>
<html>
<head>
    <meta charset="UTF-8">
    <title>翻译--中英互译</title>
    <link rel="stylesheet" href="css/style.css">
    <link rel="short icon" href="img/logo.ico">
    <link href="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.bootcss.com/font-awesome/5.8.2/css/all.min.css" rel="stylesheet">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
</head>
<body>
        <!--头部-->
        <div class="jumbotron jumbotron-fluid text-center">
            <div class="container">
                <h1 class="display-4">翻译</h1>
                <p class="lead">中英互译</p>
            </div>
        </div>



<div class="container">

    <!--左右两个语言栏以及切换语言按钮-->
    <div class="row justify-content-between mb-3">
        <div class="col-md-3">
            <div class="btn-group  btn-block" role="group" aria-label="Basic example" id="btn_if">
                <button type="button" class="btn btn-primary" disabled="disabled">中文</button>
                <button type="button" class="btn btn-light" disabled="disabled">英语</button>
            </div>
        </div>
        <div class="col-md-3">
            <button type="button" class="btn btn-secondary btn-block" id="btn_swap" onclick="lan()">
                <i class="fas fa-arrows-alt-h"></i>
            </button>
        </div>
        <div class="col-md-3">
            <div class="btn-group  btn-block" role="group" aria-label="Basic example" id="btn_that">
                <button type="button" class="btn btn-primary" disabled="disabled">英语</button>
                <button type="button" class="btn btn-light" disabled="disabled">中文</button>
            </div>
        </div>
    </div>



    <!--两个文本域-->
    <div class="row">
        <div class="col-md-6">
            <textarea class="form-control" id="text_if" rows="5"></textarea>
        </div>
        <div class="col-md-6">
            <textarea class="form-control" id="text_that" rows="5" placeholder="翻译" disabled="disabled"></textarea>
        </div>
    </div>


    <!--底部翻译按钮-->
    <div class="row mt-3">
        <div class="col-md-3">
            <button type="button" class="btn btn-primary btn-block" id="btn_res" onclick="res()">翻译</button>
        </div>
    </div>
</div>


<script src="js/script.js"></script>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.slim.min.js"></script>
<script src="https://cdn.bootcss.com/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/4.3.1/js/bootstrap.min.js"></script>
</body>
</html>